package com.tencent.iov.cowin.befsale.clue.dao.http.personal;

import com.tencent.iov.cowin.befsale.clue.dao.http.personal.request.ClueCustomerTransferRequest;
import com.tencent.iov.cowin.befsale.clue.value.contants.ServiceConstant;
import com.software.boot.common.entity.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * @author: whp
 * @description:
 * @createDate: 2022-01-26
 **/
@FeignClient(name = ServiceConstant.SCRM_PERSONAL_SERVICE,
        url = ServiceConstant.SCRM_PERSONAL_HOST)
public interface PersonalClient {

    String PERSONAL_URL = "/v1/personal/clueCustomerRecord";

    /**
     * 提供给线索中心-在职继承接口
     * @param request
     * @return
     */
    @ApiOperation(value = "ClueCustomerRecord管理-线索中心在职继承接口")
    @PostMapping(PERSONAL_URL + "/incumbency_transfer")
    public Response<?> incumbencyTransfer(@RequestBody @Valid List<ClueCustomerTransferRequest> request);

}
